package com.learn.eduadboot.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.learn.eduapi.entity.ad.PromotionAd;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PromotionAdService {
    List<PromotionAd> getAdsBySpaceId(@Param("space_id") Integer sid);
    List<PromotionAd> getAllPromotionAd(@Param("find")String find,@Param("page")Integer page,@Param("size")Integer size);
    int updateAd(PromotionAd promotionAd, Wrapper<PromotionAd> wrapper);
    int addAd(PromotionAd promotionAd);
    PromotionAd selectByName(@Param("name")String name);
    int deleteAd(Integer id);
}
